package com.itlong.cloud.utils.rabbitMQ;

import com.itlong.cloud.constants.RabbitMQConstant;
import org.springframework.amqp.core.FanoutExchange;
import org.springframework.context.annotation.Bean;

/**
 * <desc>
 *      公共消息队列配置。
 * </desc>
 *
 * @createDate 2017/9/20
 */
public class BaseConfig {

    @Bean
    public FanoutExchange fanoutExchange() {
        return new FanoutExchange(RabbitMQConstant.RABBITMQ_FANOUT_EXCHANGE);
    }


}
